package com.zw.pm.module.integrate.interactive;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zw.pm.base.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @Description: 消息 model
 *
 * @Author: China.sgl
 * @Date: 2019/12/6 08:42
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class MessageModel extends BaseModel {

    private Integer id;

    /** 内容 */
    private String content;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    /** 0=删除 1=未读 2=已读 */
    private Integer status;

    /** 接收消息用户 */
    private String users;

    private Integer projectId;

    /** 发消息用户 */
    private Integer sendUserId;

    private Integer type;

    /** 接收消息用户 */
    private Integer receiverUserId;

    /** 发消息用户 */
    private String sendUserName;

    /** 发消息用户头像 */
    private String sendUserImage;

    /** 接收消息用户 */
    private String receiverUserName;

}
